package com.linshengjian.snowball.guard.service;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface IVerifyCodeService {
    /**
     * 生成验证码
     * @return
     */
    String generate();

    /**
     * 收件人
     * @return
     */
    String recipient(HttpServletRequest request);

    /**
     * 发送验证码
     * @param phone
     * @param code
     */
    void send(String phone, String code) throws IOException;
}
